<form name="editForm3">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">申请岗位：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<select id="roleId3"
						name="roleId"
						class="form-control" 
						ng-model="editModel3.request.roleId">
                       <option ng-repeat="role in viewModel.roleList" value="{{role.roleId}}" ng-selected="editModel3.selected(role)">{{role.roleName}}--({{role.departmentCode}}){{role.departmentName}}</option>
			    </select>
			</div>
		</div>
		<div class="col-md-12 form-item">	 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始日期：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm3.startDate.$dirty && editForm3.startDate.$invalid }">
					<input name="startDate" 
						   ng-model="editModel3.request.startDate" 
						   ng-change="editModel3.dateChange(true)"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel3.editStartDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel3.editStartDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
           </div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始时间：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" 
			 		ng-class="{ 'has-error' : editForm3.gStartTime.$dirty && editForm3.gStartTime.$invalid}">
				 	<input  id="gStartTime3"
					 		name="gStartTime" 
					 		class="form-control" 
					 		ng-change="editModel3.dateChange(true)"
					 		ng-click="editModel3.startTimeClick()"
					 		ng-model="editModel3.request.startTime"
					 		maxLength="5"
					 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
					 		required>	
				</div>
			</div>
		</div>
		<div class="col-md-12 form-item" 
			ng-show="editModel3.startToTimeShow == 0"
			ng-hide="editModel3.startToTimeShow != 0">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>至：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm3.gStartToTime.$dirty && editForm3.gStartToTime.$invalid}">
					<input id="gStartToTime3"
						   name="gStartToTime" 
				 		   class="form-control" 
				 		   ng-change="editModel3.dateChange(true)"
				 		   ng-click="editModel3.startToTimeClick()"
				 		   ng-model="editModel3.request.startToTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
						   data-autoclose="true"
				 		   required>   
				</div>	   
			</div>
		</div>
           <div class="col-md-12 form-item">
           	<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束日期：</div>
            <div class="col-lg-8 col-md-8 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm3.endDate.$dirty && editForm3.endDate.$invalid }">
					<input name="endDate" 
						   ng-model="editModel3.request.endDate" 
						   ng-change="editModel3.dateChange(true)"
						   class="form-control datetime-picker" 
						   type="text" 
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel3.editEndDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel3.editEndDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
           </div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束时间：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' :  editForm3.gEndTime.$dirty && editForm3.gEndTime.$invalid}">
					<input  id="gEndTime3"
							name="gEndTime" 
					 		class="form-control"
					 		ng-change="editModel3.dateChange(true)"
					 		ng-click="editModel3.endTimeClick()"
					 		ng-model="editModel3.request.endTime" 
					 		maxLength="5"
							data-autoclose="true"
					 		ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
					 		required>
				</div>	   
			</div>
		</div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">外出时长：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input id="ghours3"
			 		   name="ghours" 
			 		   class="form-control" 
			 		   ng-model="editModel3.hours" 
			 		   disabled="disabled"> 
			</div>
		</div>
        <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请说明：</div>
			<div class="col-sm-8 col-md-8 form-input"
				ng-class="{ 'has-error' :  editForm3.description.$dirty && editForm3.description.$invalid}">
			 	<textarea name="description" 
			 		   class="form-control" 
			 		   ng-model="editModel3.request.description" 
			 		   maxLength="255"
			 		   rows="3"
			 		   required>
			 	</textarea>
			</div>
		</div>
		
	</div>	
</form>
